<?php
require_once "../funciones.php";
$link_caweb = con_intranetpccom();

$subclase = $_POST["q"];
$clase  = $_POST['cla'];
$result66 = "select * from  familias where codigoclase = '$clase' and codigosubclases = '$subclase' and estado = 1 order by famDesc";
$result66 = mysql_query($result66, $link_caweb) or die('Error taxonomia, ' . mysql_error().$sql);
$row66 = mysql_fetch_array($result66);
if(is_array($row66)){
    echo "<label for='familia'>Familia:</label>";
    echo "<select name='familia'id='familia' class='mayusculas' onchange='funcion_modelos(this.value);
                                                        funcion_pasasesion(\"modelo\",this.value)'>";
    echo "<option value=''>Seleccione</option>";
    do {
    ?>
        <option value="<? echo $row66["famCod"]; ?>"><? echo $row66["famDesc"]; ?> </option>
    <?
    } while ($row66 = mysql_fetch_array($result66));
    echo "</select>";    
}
?>


